package com.zjp.factory.idcard;

import com.zjp.factory.framework.Product;
import lombok.Getter;

@Getter
public class IdCard extends Product {


    private final String owner;


    public IdCard(String owner) {
        System.out.println("制作" + owner + "的ID卡。");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡。");
    }
}
